FROM registry:2
MAINTAINER Brick Yang <brick.yang@printfxxx.com>

RUN echo "root:123456" | chpasswd
RUN chmod u+s /bin/su

ADD startup.sh /usr/local/bin/startup.sh
RUN chmod a+x /usr/local/bin/startup.sh
ADD init.sh /usr/local/bin/init.sh
RUN chmod a+x /usr/local/bin/init.sh

ENTRYPOINT ["/usr/local/bin/startup.sh"]

EXPOSE 5000
